define(function (require, exports, module) {
    "require:nomunge,exports:nomunge,module:nomunge";

    var view = require('mokit/view');
    var grid = require('mokit/grid');
    var utils = require('mokit/utils');
    var commonUtils = require('../common/utils');
    var app = require('mokit/app');
    var scroll = require("../controls/scroll");
    /**
	 * 关于页视图
	 */
    return view.create({
        template: module.resovleUri('../templates/project-list.html'),
        el: {
        	'scrollbox': ".ui-content"
        },
        utils: commonUtils,
        config: app.config,

        /**
         * 在视图呈现时
         */
        onRender: function (context) {
            var self = this;
            grid.use(self.ui);
			scroll({
				obj: this.el.scrollbox,
				view: [this,"projectList"],
				callback: this.model.loadMoreList.bind(this.model)
			});
        }
    });
});